<?php 
// pr($partner); 
?>
<link rel="stylesheet" href="<?php echo $this->webroot;?>css/bootstrap-tagsinput.css"/>
<script type="text/javascript" src="<?php echo $this->webroot;?>js/typeahead.min.js"></script>    
<script type="text/javascript" src="<?php echo $this->webroot;?>js/bootstrap-tagsinput.min.js"></script>    
<div class="row">
    <div class="col-md-8 col-md-offset-2" style="background: #fff; padding-bottom: 50px;">
        <form role="form" name="Partner" method="post" action="<?php echo $this->webroot?>Partner/save/<?php echo $partner["Partner"]["id"] ?>" >
          <input type="hidden" name="PartnerLang[ita][id]" value="<?php echo $partner["PartnerLang"]["ita"]["id"]?>" />
          <input type="hidden" name="PartnerLang[eng][id]" value="<?php echo $partner["PartnerLang"]["eng"]["id"]?>" />
          <input type="hidden" name="Partner[id]" id="partner_id" value="<?php echo $partner["Partner"]["id"]?>" />
          <br>
          <div class="form-group col-md-12">
            <label for="nome">Url:</label>
            <input type="text" class="form-control" id="nome" name="Partner[url]" value="<?php echo $partner["Partner"]["url"];?>" placeholder="Inserisci url">
          </div>
          
           <!-- Nav tabs -->
            <ul class="nav nav-tabs">
              <li class="active"><a href="#ita" data-toggle="tab">Ita</a></li>
              <li><a href="#eng" data-toggle="tab">Eng</a></li>
            </ul>
            
            <!-- Tab panes -->
            <div class="tab-content">
              <div class="tab-pane fade in active" id="ita">
                 <div class="form-group  col-md-12">
                    <label for="descrizione">Descrizione Italiano:</label>
                    <textarea rows="10" class="form-control" id="descrizione" name="PartnerLang[ita][descrizione]" ><?php echo html_entity_decode($partner["PartnerLang"]["ita"]["descrizione"]); ?></textarea>
                  </div>
              </div>
              <div class="tab-pane fade in" id="eng">
                   <div class="form-group  col-md-12">
                    <label for="descrizione">Descrizione Inglese:</label>
                    <textarea rows="10" class="form-control" id="descrizione" name="PartnerLang[eng][descrizione]" ><?php echo html_entity_decode($partner["PartnerLang"]["eng"]["descrizione"]); ?></textarea>
                  </div>
              </div>
            </div>
            
          <div class="col-md-12" >
              <button type="submit" class="btn btn-primary">Salva</button>
              <a  href="<?php echo $this->webroot?>Partner/index" class="btn">Annulla</a>
              <a href="<?php echo $this->webroot ?>Partner/delete/<?php echo $partner["Partner"]["id"]?>" id="elimina_btn" class="btn btn-danger">Elimina</a>
          </div>
          
        </form>
   </div>
  </div>